from .import_qt import *
from .import_type import *


# 全局字体
class FontFamily:
    # 1.微信字体
    wechat_sans: str = ""


# 全局控件
class GlobalWidget:
    # 全局窗口
    root: QWidget = None


# 全局控件配置
class GlobalWidgetConfig:
    # ListWidget的宽度设置
    list_widget_width: int = 320


# 列表控件实例对象
class ListWidgetObject:
    # 客户列表对象
    customer_list_widget: QWidget = None
    # 账单清单列表对象
    bill_list_widget: QWidget = None
    # 销货清单列表对象
    sale_list_widget: QWidget = None


# 当前选中的ID编号
class CurrentSelectedID:
    # 客户列表当前选中的ID编号
    customer_selected_id: str = ""
    # 账单清单列表当前选中的ID编号
    bill_selected_id: str = ""
    # 销货清单列表当前选中的ID编号
    sale_selected_id: str = ""


# 账单筛选条件
class BillCurrentFilter:
    # 选择的客户ID，*为所有客户
    cust_id: str = "*"


# 账单类型
class BillType:
    # 账单类型列表
    type_list: List[str] = ["支付宝", "微信", "公户", "银行卡"]
    # 账单类型图片名称
    type_dict: Dict[str, str] = {
        "支付宝": "01.jpg",
        "微信": "02.jpg",
        "公户": "03.jpg",
        "银行卡": "04.jpg",
    }


class SaleInfo:
    # 销货清单抬头
    sale_title: List[str] = ["序号", "品名及规格", "件数", "每件卷数", "总卷数", "单价", "总价", "备注"]
    # 抬头尺寸
    sale_title_width: List[int] = [60, 250, 100, 100, 100, 150, 150, 200]


# 账单筛选条件
class SaleCurrentFilter:
    # 选择的客户ID，*为所有客户
    cust_id: str = ""
